<?php

namespace Home\Controller;

use Think\Controller;
use Think\IFilter;
use Think\IReq;
use Home\Model\Goods;

class GoodController extends Controller {

    public function index() {
        $goods_id = IFilter::act(IReq::get('id'), 'int');

        //初始化数据
        $goods_class = new Goods();

        //获取所有商品扩展相关数据
        $data = $goods_class->edit($goods_id);
        
        //dump($data);die;
        $this->assign('data',$data);
        
        $this->display();
    }
   
}